home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Contours source / fractal.r < prev    next >
Text File  |  1985-09-03  |  5KB  |  248 lines

  1. *  Fractal.r -- Resource definition file for fractal contour map
  2. *               application.
  3.  
  4. * Tell RMAKER what to name the resource file
  5. !fractal
  6. APPLfrak
  7.  
  8. * Version data for the finder
  9. *    Our signature is "frak"
  10. *    res. ID = 0, by convention
  11. *    finder version data
  12. *    Note that the blank in 'STR ' is significant 3/8/85 WHJ
  13. TYPE frak = STR 
  14.   ,0
  15.   Frac 1.0 -- July 13, 1985
  16.  
  17. * Menus
  18. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  19. *   menu title: an Apple symbol (in hex) for the Apple menu.
  20. *   menu entries, one per line. ( means it's initially disabled.
  21. *   An entry of  (-  means a disabled line of dashes.
  22. *   A trailing /Q means a command-key equivalent.
  23. *   blank line at end of menu.
  24. Type MENU
  25.   ,1(4)
  26. \14
  27.  About Fractal Contours
  28.  (-
  29.  
  30. Type MENU
  31.   ,2(4)
  32. File
  33.  New/N
  34.  (-
  35.  (Save as Paint FileI
  36.  (-
  37.  Quit/Q
  38.  
  39.    ,3(4)
  40. Edit
  41.  (Undo
  42.  (-
  43.  Cut/X
  44.  Copy/C
  45.  Paste/V
  46.  Clear
  47.  
  48.     ,4(4)
  49. Options
  50.  Contour ParametersI
  51.  
  52. * A Window template
  53. *   ID,(4 => pre-load the resource; 32 => purgeable)
  54. *    title
  55. *    BoundsRect (global Top, Left, Bottom, Right): where it appears on the
  56. screen
  57. *    Vis NoGo: it's visible, does not have close box
  58. *    ProcId: this is a standard type of window
  59. *    Refcon, for program's use.  Frac doesn't use it.
  60. Type WIND
  61.   ,260(36)
  62.   Fractal Contours
  63.   39 1 341 511
  64.   Visible NoGoAway
  65.   0
  66.   0
  67.  
  68. * Picture declarations.
  69. * For the Information screens.
  70. * Since RMaker doesn't know how to use these in
  71. * DITL's, we have to get in and patch it up with
  72. * ResEdit later.  Suck city!
  73.  
  74. * Type PICT = GNRL
  75. *     ,128
  76. *     .R
  77. * Draw:Scrapbook PICT -32753
  78. *
  79. *     ,129
  80. *     .R
  81. * Draw:Scrapbook PICT -32752
  82.  
  83.  
  84. * dialog box for About Fractal Contours
  85. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  86. *   title
  87. *   BoundsRect(global: TLBR)
  88. *   Vis NoGo: it's visible, but has no close box
  89. *   ProcID: Window type is modal dialog
  90. *   RefCon: Unused user variable
  91. *   res. ID of item list
  92. Type DLOG
  93.   ,256(4)
  94.   Information Box
  95.   28 24 328 485
  96.   Visible NoGoAway
  97.   1
  98.   0
  99.   256
  100.  
  101.   ,257(4)
  102.   Information Box #2
  103.   28 24 328 485
  104.   Visible NoGoAway
  105.   1
  106.   0
  107.   257
  108.  
  109.   ,258(4)
  110.   Contour Parameters
  111.   44 109 221 397
  112.   Visible NoGoAway
  113.   0
  114.   0
  115.   258
  116.  
  117.  
  118.  
  119. * dialog item list for About Fractal
  120. *   ID (4 => pre-loaded; 32 => purgeable - it should always be purgeable.)
  121. *   # Items
  122. *   the first item:
  123. *      a Button you can select
  124. *      display rect (local coords)
  125. *      title
  126. Type DITL
  127.   ,256(36)
  128.   3
  129.   Button Enabled
  130.   97 14 118 99
  131. OK
  132.  
  133.   Button Enabled
  134.   96 114 118 201
  135. More Info 
  136.  
  137.   StatText Disabled
  138.   20 10 300 400
  139. Picture here
  140.  
  141.   ,257(36)
  142.   2
  143.   Button Enabled
  144.   273 205 294 290
  145. OK
  146.  
  147.   StatText Disabled
  148.   20 10 300 400
  149. Picture here
  150.  
  151. * dialog item list for Setup
  152. *   ID (4 => pre-loaded; 32 => purgeable - it should always be purgeable.)
  153.   ,258(36)
  154. 8
  155. *   1
  156. BtnItem Enabled
  157. 144 32 164 92
  158. OK
  159.  
  160. *   2
  161. BtnItem Enabled
  162. 144 184 164 244
  163. CANCEL
  164.  
  165. *   3
  166. StatText Disabled
  167. 32 16 48 128
  168. Level of Detail:
  169.  
  170. *   4
  171. EditText Disabled
  172. 32 128 49 162
  173.  
  174. *   5
  175. RadioItem Enabled
  176. 64 120 80 240
  177. Mountainous
  178.  
  179. *   6
  180. RadioItem Enabled
  181. 88 120 104 224
  182. Foothills
  183.  
  184. *   7
  185. RadioItem Enabled
  186. 112 120 128 264
  187. Foothills & Water
  188.  
  189. *   8
  190. StatText Disabled
  191. 64 16 83 116
  192. Contour type:
  193.  
  194. ***
  195. * Finder's Information follows.
  196. ***
  197.  
  198. Type BNDL
  199.    ,128(32)
  200.    FRAC 0
  201.    ICN# 0
  202.    0 128 1 129
  203.    FREF 0
  204.    0 128 1 129
  205.  
  206. * a File Reference
  207. *   ID, (32 => purgeable)
  208. *   "APPL" : a file of type APPL (FRAC itself) gets the following icon (a
  209. mountain);
  210. *       local icon ID; maps to global ID as specified in BNDL
  211. *   name of file that must accompany application if transferred; omit if none.
  212.   Type FREF
  213.    ,128(32)
  214.    APPL 0
  215.  
  216. * An icon list for the application icon (a mountain)
  217. *   ID (the application icon), (32 => purgeable)
  218. *   Data is Hex data (.H)
  219. *   the icon data: 32 lines of 8 hex chars each
  220. *   the icon mask: 32 lines of 8 hex chars each
  221. Type ICN# = GNRL
  222.  ,128(32)
  223. .H
  224. 0000 0000 0000 0000 0000 0000 0000 0000
  225. 0000 E000 0003 E000 0006 1000 0006 1000
  226. 000C 0800 003C 0C00 007C 7A00 0047 E300
  227. 01C6 1100 030C 1080 0278 10C0 06EE 3CE0
  228. 0583 47F0 1F00 C118 3303 820C 61BE 1C1E
  229. 4063 FFF7 7FFF 0000 0000 0000 0000 0000
  230. 0000 0000 0000 0000 0000 0000 0000 0000
  231. 0000 0000 0000 0000 0000 0000 0000 0000
  232. *
  233. 0000 0000 0000 0000 0000 0000 0000 0000
  234. 0000 E000 0003 E000 0007 F000 0007 F000
  235. 000F F800 003F FC00 007F FE00 007F FF00
  236. 01FF FF00 03FF FF80 03FF FFC0 07FF FFE0
  237. 07FF FFF0 1FFF FFF8 3FFF FFFC 7FFF FFFE
  238. 7FFF FFFF 7FFF 0000 0000 0000 0000 0000
  239. 0000 0000 0000 0000 0000 0000 0000 0000
  240. 0000 0000 0000 0000 0000 0000 0000 0000
  241.  
  242. ****    end of information for the finder                          ****
  243. ***********************************************************************
  244.  
  245.  
  246. *INCLUDE fractal.code
  247.  
  248.